package com.autumn.xa.a.tuling.jvm;

import com.autumn.xa.common.entity.User;
import com.autumn.xa.common.entity.UserFinalize;

import java.util.ArrayList;
import java.util.List;
import java.util.UUID;

/**
 * ClassName: OOMTest
 *
 * @Description:
 * @Author: wangqiuyang
 * @Date: 2022/6/25 4:45 PM
 * History:
 * <author>          <time>          <version>          <desc>
 * wangqiuyang    2022/6/25 4:45 PM   @Version 1.0        描述
 */
public class OOMTest {
    public static List<Object> list1 = new ArrayList<>();

    public static void main(String[] args) {
        List<Object> list = new ArrayList<>();
        long i = 0;
        long j = 0;
        while (true) {
            list.add(new UserFinalise1(i++, UUID.randomUUID().toString()));
            new UserFinalise1(j--, UUID.randomUUID().toString());
        }
    }
}
